package com.yvan.zipkin;

public class TracingCollectorFactory {

    private String applicationName;

    private Integer serverPort;

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public Integer getServerPort() {
        return serverPort;
    }

    public void setServerPort(Integer serverPort) {
        this.serverPort = serverPort;
    }

    public TracingCollector build(String traceId, String id, String parentId, TracingCollectorType tracingCollectorType) {
        return TracingCollector.create(applicationName, serverPort, traceId, id, parentId, tracingCollectorType);
    }
}
